package proxy.staticproxy;

import proxy.factory.PCFactory;
import proxy.factory.impl.AppleFactory;

public class TaobaoProxy implements PCFactory{

    @Override
    public int sell(int amount) {
        PCFactory pcFactory = new AppleFactory();
        int price = pcFactory.sell(1);

        price += 1000;
        System.out.println("淘宝卖出PC电脑,价格（+1000）：" + price);
        return price;
    }

}
